Understanding population pyramids